import request from '@/config/axios'

export interface List {
  /*场地名称 */
  placeName: string;
  /*状态：0处理中 1已完成 */
  status: number;
  /*鉴定时间 */
  appraiseTime: string;
  /*价值量化 */
  cost: string;
  /*底图 */
  baseMap: string;
  /*地下水调查点 */
  surveyPoints: string;
  /*水位等值线 */
  contourLine: string;
  /*包气带主要介质类型 */
  mediaType: string;
  /*包气带厚度 */
  thicknessAeration: string;
  /*含水层厚度 */
  thicknessWater: string;
  /*污染物种类 */
  pollutantType: string;
  /*id */
  id: number;
}

/**
 * 获取列表分页
 */
export const getListApi = (params: PageParam) => {
  return request.get<{list: List[], total: number}>({ url: '/ability/appraisal-info/page', params })
}

/**
 * 查询
 * @param { number } id
 */
export const getDetailsApi = (id: number) => {
  return request.get<List>({ url: '/ability/appraisal-info/get?id=' + id })
}

/**
 * 删除
 * @param { number } id
 */
export const deleteApi = (id: number) => {
  return request.get({ url: '/ability/appraisal-info/delete?id' + id })
}
